<template>
  <div class="hello">
      服务器渲染
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  mounted () {
    // this.$axios.delete('http://localhost:8080/api/delTest/5').then(res => {
    //   console.log(res)
    // })
    // this.$axios.get('http://localhost:8080/api/getIcon').then(res => {
    //   console.log(res)
    // })
    this.$axios.post('http://localhost:8080/api/addTeacher', {name: 'test', num: '2222', sex: '男'}).then(res => {
      console.log(res)
    })
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
